package brainsplash.gyrusscope.game;

import brainsplash.gyrusscope.framework.gl.TextureRegion;

public class Particle extends BaseObject {
	public int lifetime;
	public float sizeSpeed;
	
	public Particle(TextureRegion sprite, int radius, int center_x, int center_y,
			float distanceFromCenter, float direction, float speed, int lifetime, float sizeSpeed) {
		super(sprite, 0, 0, center_x, center_y, radius, distanceFromCenter, direction, speed);
		this.lifetime = lifetime;
		this.sizeSpeed = sizeSpeed;
		minDistFromCenter = 4;
		// TODO Auto-generated constructor stub
	}

	public void update() {
		super.update();
		direction += speed / 8;
		radius = (int) (radius + sizeSpeed);
		lifetime -= 1;
	}
}
